using System;
using System.Collections.Generic;
namespace DalatCooking.Core
{
    public abstract class INewsRepository
    {
        public abstract bool Insert(News entity);
        public abstract bool Update(News entity);
        public abstract bool Delete(News entity);
        public abstract bool Delete(int id);
        public abstract List<News> FindAll();
        public abstract News FindById(int id);
        public abstract News Single(int id);
        public abstract News FindByName(string name);
        public abstract List<News> PagingSql(int pageSize, int pageNum, out int totalRowCount);
        public abstract List<News> PagingLinq(int pageSize, int pageNum, out int totalRowCount);
        public abstract bool SetActive(int id);
        public abstract bool SetSortIndex(int id, int isup);
        public abstract bool RemoveSelectedItem(int id);
        public abstract bool RemoveAll();
        public abstract bool RestoreSelectedItem(int id);
        public abstract bool RestoreAll();
    }
}